module.exports = {
  sendRes(res, responseData) {
    if (responseData.code === undefined) {
      responseData.code = 200;
    }
    if (responseData.msg === undefined) {
      responseData.msg = 'success';
    }
    res.send(responseData);
  },
};
